using UnityEngine;
using System.Collections;
using System.Collections.Generic;

//挂在相机上
public class CRTEffect :MonoBehaviour{

	public Material m;
  
//表面函数
    void Awake(){
     m = new Material(Shader.Find("Hidden/BWDiffuse"));
    }

    void OnRenderImage(RenderTexture src,RenderTexture dest){//渲染图像
       if(m == null){
          Graphics.Blit(src, dest);
       }else
       {
          Graphics.Blit(src, dest, m);
       }
      
      
    }

}
